package demo1;

import java.util.Comparator;

public class AgeCompare implements Comparator<People> {
    @Override
    public int compare(People o1, People o2) {
        return Integer.compare(o1.age,o2.age);
    }
}
